﻿@using System.Web.Optimization
@{
    Layout = "";
}

<ul id="manualUploadModeExample" class="unstyled"></ul>






    

        @Styles.Render("~/content/fineuploader/fineuploader-3.5.0.css")
        @Scripts.Render("~/scripts/jquery-1.7.1.js")
        @Scripts.Render("~/content/fineuploader/fineuploader-3.5.0.js")
        @Scripts.Render("~/content/fineuploader/iframe.xss.response-3.5.0.js")

        <script>
            $(document).ready(function() {

                var errorHandler = function(event, id, fileName, reason) {
                    qq.log("id: " + id + ", fileName: " + fileName + ", reason: " + reason);
                };

        
                var uploader2 = new qq.FineUploader({
                    element: $('#manualUploadModeExample')[0],
                    autoUpload: true,
                    uploadButtonText: "Select Files",
                    request: {
                        endpoint: "/FineUploader/UploadFile",
                        params: { "extraParam1": "true", "extraParam2": "212" }                
                    },
                    callbacks: {
                        onError: errorHandler
                    }
                });


            });
        </script>